﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using WarehouseManagement.BusinessLogic.BC;
using WarehouseManagement.DataAccess;

namespace WarehouseManagement.BusinessLogic.DTO
{
    public class CurrencyDTO : INotifyPropertyChanged
    {
        private decimal _exchangeRateVND;

       

        public decimal ExchangeRateVND
        {
            get { return _exchangeRateVND; }
            set
            {
                if (_exchangeRateVND != value)
                {
                    _exchangeRateVND = value;
                    SendPropertyChanged("ExchangeRateVND");
                }
            }
        }

       

        private int _currencyId;
        public int CurrencyId
        {
            get
            {
                return _currencyId;
            }
            set
            {
                if (_currencyId != value)
                {
                    _currencyId = value;
                    SendPropertyChanged("CurrencyId");
                }
            }
        }

        private string _currencyCode;
        public string CurrencyCode
        {
            get
            {
                return _currencyCode;
            }
            set
            {
                if (_currencyCode != value)
                {
                    _currencyCode = value;
                    SendPropertyChanged("CurrencyCode");
                }
            }
        }

        private string _currencyName;
        public string CurrencyName
        {
            get
            {
                return _currencyName;
            }
            set
            {
                if (_currencyName != value)
                {
                    _currencyName = value;
                    SendPropertyChanged("CurrencyName");
                }
            }
        }

        public CurrencyDTO()
        {
           
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            if ((this.PropertyChanged != null))
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }
}
